<!--创建一个loginApp模块，然后再创建一个loginController控制器-->
<div class="container" ng-app="loginApp" ng-controller="loginController">
    <div class="col-md-6 col-md-offset-3">
        <div class="page-header">
            <h1 class="text-center">angularJS 增删改查项目</h1>
        </div>
        <form ng-submit="postForm()">
            <div class="form-group">
                <label>用户名：</label>
                <input type="text" name="username" class="form-control" ng-model="formData.username" placeholder="用户名">
                <span class="help-block" ng-show="errorsUsername">{{ errorsUsername }}</span>
            </div>
            <div class="form-group">
                <label>密码：</label>
                <input type="password" name="username" class="form-control" ng-model="formData.password" placeholder="密码">
                <span class="help-block" ng-show="errorsPassword">{{ errorsPassword }}</span>
            </div>
            <div id="messages" class="well" ng-show="message">{{ message }}</div>
            <button type="submit" class="btn btn-success btn-lg btn-block">
                <span class="glyphicon glyphicon-flash"></span>提交
            </button>
        </form>
    </div>


</div>